import { createApp } from 'vue'
import './style.css'
import router from './router'
import DataVVue3 from '@kjgl77/datav-vue3'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'  // 引入 Element Plus 的样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App);

app.use(router);  // 注册路由器
app.use(DataVVue3)
app.use(ElementPlus)
// 注册 Element Plus 图标
Object.entries(ElementPlusIconsVue).forEach(([key, component]) => {
    app.component(key, component)
})

app.mount('#app');
